package cn.xinfei.xdecision.data.core.frame.executors.groovy;

import groovy.lang.Script;
import org.springframework.stereotype.Service;

import java.lang.reflect.Method;

@Service
public class MyBasicScript extends Script {
    @Override
    public Object run() {
        //show usage
        Method[] methods = MyBasicScript.class.getDeclaredMethods();
        StringBuilder sb=new StringBuilder();
        for (Method method : methods) {
            sb.append(method);
        }

        return sb.substring(0, sb.length()-1);
    }

}
